{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="{% static 'layui/css/layui.css' %}">
    <script src="{% static 'layui/layui.js' %}"></script>
    <script src="{% static 'js/jquery.js' %}"></script>
</head>
<body>
<form class="layui-form" lay-filter="example">
<input type="hidden" value="{{ book.book_id }}" name="bookId">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">图书名</label>
            <div class="layui-input-inline">
                <input type="text" name="bookName" lay-verify="title" autocomplete="off"
                       class="layui-input" lay-verify="required" value="{{ book.book_name }}">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">ISBN</label>
            <div class="layui-input-inline">
                <input type="text" name="bookIsbn" lay-verify="title" autocomplete="off"
                       class="layui-input" lay-verify="required" value="{{ book.book_isbn }}">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">作者</label>
            <div class="layui-input-inline">
                <input type="text" name="bookAuthor" lay-verify="title" autocomplete="off"
                       class="layui-input" lay-verify="required" value="{{ book.book_author }}">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">出版社</label>
            <div class="layui-input-inline">
                <input type="text" name="bookPress" lay-verify="title" autocomplete="off"
                       class="layui-input" lay-verify="required" value="{{ book.book_press }}">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">价格</label>
            <div class="layui-input-inline">
                <input type="text" name="bookPrice" lay-verify="title" autocomplete="off"
                       class="layui-input" lay-verify="required" value="{{ book.book_price }}">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">总页数</label>
            <div class="layui-input-inline">
                <input type="text" name="bookPagination" lay-verify="title" autocomplete="off"
                       class="layui-input" lay-verify="required" value="{{ book.book_pagination }}">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">上架时间</label>
            <div class="layui-input-inline">
                <input type="text" name="bookUploadtime" id="date" lay-verify="date" placeholder="yyyy-MM" autocomplete="off"
                       class="layui-input" value="{{ book.book_uploadtime }}">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-inline">
                <select name="interest" lay-filter="aihao" name="bookStatus" {% ifequal book.book_status '3' %}disabled{% endifequal %}>
                    <option value="0" {% ifequal book.book_status '0'%}selected{% endifequal %}>可借阅</option>
                    <option value="1" {% ifequal book.book_status '1'%}selected{% endifequal %}>借阅中</option>
                    <option value="2" {% ifequal book.book_status '2'%}selected{% endifequal %}>归还中</option>
                    <option value="3" {% ifequal book.book_status '3'%}selected{% endifequal %}>已下架</option>
                </select>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button id="submitBtn" class="layui-btn" lay-filter="demo1">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
</body>
<script src="{% static 'js/booksBorrow/edit.js' %}"></script>
</html>